This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
speed dist
Min. : 4.0 Min. : 2.00
1st Qu.:12.0 1st Qu.: 26.00
Median :15.0 Median : 36.00
Mean :15.4 Mean : 42.98
3rd Qu.:19.0 3rd Qu.: 56.00
Max. :25.0 Max. :120.00
Call:
glm(formula = deaths ~ continentExp + I(month) + I(month^2) +
I(month^3) + log(cases) + popData2019Millions + I(popData2019Millions^2) +
I(popData2019Millions^3) + I(popData2019Millions^4), family = "poisson",
data = grouped_data)
Deviance Residuals:
Min 1Q Median 3Q Max
-37.292 -3.158 -1.102 0.711 131.799
Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -2.365e+00 2.047e-02 -115.536 < 2e-16 ***
continentExpAmerica 5.886e-01 4.693e-03 125.416 < 2e-16 ***
continentExpAsia -1.372e-01 4.994e-03 -27.469 < 2e-16 ***
continentExpEurope 2.210e-01 4.703e-03 46.989 < 2e-16 ***
continentExpOceania 1.350e-02 2.981e-02 0.453 0.651
I(month) -6.604e-02 8.549e-03 -7.725 1.12e-14 ***
I(month^2) -4.321e-02 1.171e-03 -36.900 < 2e-16 ***
I(month^3) 3.130e-03 5.040e-05 62.108 < 2e-16 ***
log(cases) 7.780e-01 8.405e-04 925.612 < 2e-16 ***
popData2019Millions 1.155e-02 4.481e-05 257.792 < 2e-16 ***
I(popData2019Millions^2) -5.125e-05 2.017e-07 -254.041 < 2e-16 ***
I(popData2019Millions^3) 6.435e-08 3.229e-10 199.282 < 2e-16 ***
I(popData2019Millions^4) -2.391e-11 1.523e-13 -157.016 < 2e-16 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
(Dispersion parameter for poisson family taken to be 1)
Null deviance: 5298344 on 25125 degrees of freedom
Residual deviance: 898612 on 25113 degrees of freedom
(4 observations deleted due to missingness)
AIC: 1002933
Number of Fisher Scoring iterations: 6